import styled from 'styled-components'

export const HomeWrapper=styled.div`
    width:960px;
    margin:0px auto;
    // overflow:hidden;
`;
export const HomeLeft=styled.div`
   margin-left:15px;
   padding-top:30px;
   float:left;
   width:625px;
   .banner-img{
    width:625px;
    height:270px
   }
   .ant-carousel .slick-slide {
    text-align: center;
    background: #364d79;
    overflow: hidden;
  }
  .ant-carousel .slick-slide h3 {
    color: #fff;
  }
`;
export const HomeRight=styled.div`
   width:280px;
   float:right
`;
//  topic部分
export const TopicWrapper=styled.div`
    padding:20px 0px 10px 0px;
    overflow:hidden;
    border-bottom:1px solid #dcdcdc
`;
export const TopicItem= styled.div`
    float:left;
    background:#f7f7f7;
    height:32px;
    line-height:32px;
    font-size:14px;
    color:#000;
    border:1px solid #dcdcdc;
    border-radius:4px;
    padding-right:10px;
    margin-right:24px;
    margin-bottom:18px;
    cursor:pointer;
    img{
        display:block;
        float:left;
        width:32px;
        height:32px;
        margin-right:10px;
    }
`;
export  const ListItem=styled.div`
    padding:20px 0px;
    border-bottom:1px solid  #dcdcdc;
    overflow:hidden;
    .pic{
        width:125px;
        height:100px;
        display:block;
        float:right;
        border-radius:10px;
    }
`;
export  const ListInfo=styled.div`
    width:470px;
    margin-right:30px;
    float:left;
    .title{
        font-size:18px;
        line-height:27px;
        font-weight:bold;
        color:#333;
        margin-bottom:4px;
    }
     .desc{
        font-size:13px;
        line-height:24px;
        color:#999;
     }
`
//Recommend部分
export const RecommendWarpper=styled.div`
    margin: 26px 0 0;
`
export const RecommendItem=styled.a`
    display:block;
    cursor: pointer;
    text-decoration: none;
    width:280px;
    height:50px;
    background:url(${(props)=>props.imgUrl});
    background-size:contain;
    margin-bottom:6px;
`
export const WritrerWarpper=styled.div`
    margin-top:10px;
    &.codeAlt{
        width:160px;
        height:160px;
    }
`
export const Code=styled.div`
    margin-bottom: 20px;
    padding: 10px 22px;
    width: 100%;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    background-color: #fff;
    box-sizing:border-box;
    vertical-align: top;
    cursor:default;
    img{
        width: 60px;
        height: 60px;
        opacity: .85;
        display:inline-block;
        vertical-align: middle;
    }
`;
export const CodeInfo=styled.div`
    display: inline-block;
    vertical-align: middle;
    margin-left: 7px;
    .title{
        font-size: 15px;
        color: #333;
    }
    .description{
        margin-top: 4px;
        font-size: 13px;
        color: #999;
    }
`;
export const RecommendAuthor=styled.div`
    margin-top:10px
`;
export const AuthorTitle=styled.div`
    margin-bottom:24px;
    span{
        font-size: 14px;
        color: #969696;
    }
    .changes{
        float: right;
        display: inline-block;
        font-size: 14px;
        color: #969696;
        cursor:pointer;
        text-decoretion:none;
    }
    .spin{
        display:inline-block;
        font-size: 14px;
        color: #969696;
        margin-right:6px;
        transition:all .2s ease-in;
        transform-origin:center center;
    }
`;
export const AuthorItem=styled.div`
    cursor:pointer;
    margin-top: 15px;
    line-height: 20px;
    overflow:hidden;
`;
export const Avatar=styled.a`
    float: left;
    width: 48px;
    height: 48px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background-image:url(${(props)=>props.imgUrl});
    background-size:contain;
`;
export const Follow = styled.a`
    float: right;
    margin-top: 5px;
    padding: 0;
    font-size: 13px;
    color: #42c02e;
    &:hover{
        color: #42c02e;
    }
`;
export const Name=styled.a`
    padding-top: 5px;
    margin-right: 60px;
    font-size: 14px;
    display: block;
    cursor:pointer;
    color: #2f2f2f;
    &:hover{
        color: #2f2f2f;
    }
`;
export const AuthorDesc=styled.p`
    font-size: 12px;
    color: #969696;
`;
export const LoadMore=styled.div`
    width:100%;
    height:40px;
    line-height:40px;
    text-align:center;
    color:#fff;
    background:#ccc;
    border-radius:20px;
    margin:30px auto;
    cursor:pointer;
`